JS sudo coding