JavaScript clean up 1