Fixed one calculation style on js