add jquery and fix crashing app on orientation