javascript syntactic changes