update jquery to 2.1.1
fix tests and replaceLayer