creating ajax module for remote apps