fixed bug with controllers url in javascript