Added jQuery implementation.