added js changes
base rest service structure