fast || smooth , calculation <3 javascript