Code cleanup

This change updates some of the code to use standard JavaScript coding
conventions.