ajax entry method inplemented
fix syntax error