Incorrect js url on Portal Factory