added base js scripts and base templates