A way to load view using JavaScript