Removed some leftover commented code from the js port