hard reset to working javascript