Fixed bug in javascript drawing overlay on wrong places?