Tab rules for JSON and Javascript