refactor to avoid problems with context
Skeleton now renders,added models path to global object