[FIX] use Math.floor instead of parseInt. [UPDATE] add jshint.