Refactors portfolio js