#290-#310. Preview mode check fixed wrong execute js call