initial commit
separated javascript
added some basic functions