Add preview for pages being edited
Better namespacing for js