moved js to new popup file in /js