Fixed boilerplate JavaScript