shitty blinking
fixed up some javascript