js syntax update