adding all javascript
added timeout functionality project one is finished