creating the view and controller
javascript "entry point"