Separated javascript file from html