Adding ROOT_PATH variable to javascript URLs