Separated javascript to separate file