Code cleanup

Slight cleanup to fix potential problems that could occur in some
JavaScript engines.