fix PageNotFound not displaying for missing cms pages
fix javascript load order