Added code cleanup for js.