wonky JavaScript