ermahgerd stupid js craziness