changed jQuery method live to on . live method was deprecated as of jQuery 1.9