detect indent for js too