Change core logic into standard Jq Plugin