hacked up javascript