revert from chrome plugin to js library