Moved example with deferred out of .js file