Added some javascript objects to refactor example