Add swith to disable javascript