Cloned popup JS files for faster launch

Started framework for faster main menu popup JS.