Boilerplate javascript.