Personal additions to vanilla javascript