Replaced JavaScript with a temp fix.

Replaced JavaScript with a temp fix. This will reopen issue #4 that was
closed in commit 71b80f9