Cleaning my dirty javascript hacks.