Some more JS hacking