initialise view with jquery