separated javascript code into multiple files