I hate Javascript so much.