one of those obvious javascript things