separated javascript into separate files