Is JavaScript or PHP icon status on the top right of WYSIWYG toolbar enable?
If the icon status enables, it should work on Preview or Publish web site. Be noticed that after adding the JS or PHP in the HTML view in step5 WYSIWYG, save data, and reopen it again. The code will be converted to comment. To test it, you need to click Preview to see it in action. If the JavaScript icon status is disables, you need to ask your provider to allow so. Your provider needs to go to root WHM >> RVSiteBuilder Manager >> System Configuration. Under WYSIWYG options, enable them.