Add age.js

Added the javascript file the does all the work