popup extension JS and styling