Make custom.js location configurable

It would be great if the location of custom.js file would be configurable, so it could be typically located in custom assets folder. Also if not configured, we could stop trying to load it as otherwise we are getting 400 all the time.