feat(gh-pages): overwrite the js dependancies

Add the possibility to overwrite the main page js dependancies by passing a function on the js key.