Clean up some very lolzy javascript