Refactored the templates.
Fixed a missing import.
Added jquery to avoir internet connectivity.