Removed debug code

This might have caused js errors in some browsers :(