Removing unecessary code. JS mode?