fixed jQuery version (1.9.0 not working correctly), small performance improvements