revamping format and javascript
first commit: redux of original