cleaning up javascript and added output preview
added files for triggers