Consistent JavaScript formatting