boilerplate frontend error

i am using yii boilerplate…

but it giving me error everytime ERROR 404.

actually all js inside frontend/www/app/js folder not taking baseurl.

that means all js locating to directly to localhost/and functionname.

how to set base url in all js …

please help…