Updating for switching over to require and backbone