Converted javascript library to dojo.