I hate you, javascript