added navigator class
added AMD define() functionality