javascript: now passes reg016