Added documentation to portfolio.js