fix crap in javascript