adding js libraries and default view