removed dependency on js