throw error when the js view does not exist