Bugfixes on AMD support
Add load by url only method and Firefox/Webkit switches