Java script 4 fps