JC-1966 Added js for button "Preview"

After adding the script, all posts have the opportunity to "Preview"