Bug fixes in MockCordova. Added namespace to vars etc