Removed half-baked javascript code that was crashing the server