Update the javascript file for the examples