slightly more readable js