Update Portrait.js

Updated to reflect changes in master branch