Start of popups
Move page edit js out of ruby