AMD compatible version of usngs.js by Larry Moore with bug fixes and enhancements.