work on proper code structure for object previews in toolkit actors/script.js for bug 843004 - part2 patch