Fixed nbviewer issue delaying the load of js until the html is ready.
Used resources.js_wrapper as Matheuz suggested.
Merge pull request #619 from damianavila/fix_nbviewer

Fix nbviewer issue.