[Fixed] now working with Firefox and IE

- fixed the parseInt() NaN problem
- removed unneeded lines