Added init javascript
