Grid Code Reorganize and Relocatable 

Changed the javascript to be relocatable, by creating anonymous classes,
and using relative paths. Also change to the amdcompat.js to handle
relative paths such as ../../../ instead of only ../../