added global and amd compilance
extracted jsapp-router to a new repository