haha it was a bug
if gamemaker has a game crashing bug it just turns black when its on web form and it turned out my sine variable was not set before reading or something like that