move js files to root and add minified version
add make file and ender support
fix AMD exporting errors
fix amd errors due to missing window scope when checking for module and define
fix undefined $win context in AMD