added return value for communics with jquery