* Moving out JS code from popup.html
* Fixing lag when openning popup

Signed-off-by: Braiam Peguero <braiamp@gmail.com>