Added Javascript and Moved code from repoHandler to userRepoHandler