Got started with the rewriting of the Javascript file