Removed javascript console debugging statements

Fixed for #489.