Added some testcases.
Fixed jshint warnings.
Removed "animator" option on pushPage, popPage.