javascript is a cruel, cruel mistres