refactoring background script into jquery, some other fixes and tweaks
trimmed js files
fix conflict