added Chrome support, it works.
switched to chrome
removed redundent code
climize, and fixed naming and encoding