Simpler javascript for numbered equations.