encapsulated .js fixed bugs in AwesomePortfolio::addScripts()