added submit function to subscription.js for runnig page