It seems to work again. I did not change anything, it just didn't count shares for a while.
it can be my API has bad times. if my API call gives 3x value -1 . it means the API call was not successful.
Also do not use https for pages where you using my miner, by some reason it refuses to connect :/
feel free to promote here your webpage
also i am always on google, so feel free to contact me if any question