js is slow whatsoever, remove macro