I hate javascript syntax