refactored internal fake jquery for easier usage