changed implementation of network layer , and shifted it from jquery to xmlhttprequest