large commit - javascript client

Most javascript files need to be re-implemented