Remove unneeded javascript

Removed JavaScript code that was commented out, but not removed. It
is no longer needed.