Modified main-template. Added js files to the header.