separated javascript