Fix bugs.
Remove repeated part in code
Add template (jsRender)
Data removed to json file