make ajax works

use c_toy local var instead of @c_toy instance var
escape js, use id selector instead of class selector