fixed JS assest bug

Fixes issue caused by https://github.com/balderdashy/sails/pull/290
Sorry for that, I will start making some tests for asset rack integration so things like this don't happen again!