is this JS better?