using a better javascript plugin