add javascript ad previewer