finished up background.js server-cleint relationship
added patchecheck to make sure that path of javascript library are approriate