change .html to .replaceWith
fix mistyped
Fixing specs and js