changes to main Page template to support js framework