including js files and rendering needed HTML