find the issue- since i was not using any server, chrome security doesn't allow this XMLHttprequest