boilerplate for JS library