Standardize JS codes.