working on js syntax