Add example.js and use dom manipulation for outputting results