js syntax improved