Most disgusting JS fix in the history of prorgamming