this is how the cool js kids do it