Replaced JavaScript with a temp fix.

Replaced JavaScript with a temp fix. This will reopen issue #4 that was
closed in commit 71b80f9
Merge pull request #9 from StoneWaves/JavaScript-Fixes

Replaced JavaScript with a temp fix.