Separated javascript code into separate folder/file