New function doesn't have jquery dependency