Boilerplate JavaScript with some DOM tools