Rename javascripts -> client

Javascripts -> client

Also renamed folder
Refactor view rendering