Add offline and jquery
fix tests