separated javascript into two new files and updated new-course template behavior