fixed javascript paths in view