added preview fucntionality
Added comments in options.js file