Added boilerplate javascript code