fit portrait for js
Merge pull request #16 from chuanweizhang2013/master

fit portrait for js