Redefine route setup
Fix truncate test for routes
Update js docs
Update version to 1.2.0