Adapted Network and Like Observer class and added condition checking to jquery.patterns.js