Uncaught type error - possible versioning error