Fixes #8, change in toUrl, need to explicitly pass .js to it now. Rev for 2.0.2