revert back to original js snippet