Added js and main popup