Separated javascript into several files