added js for subscriptions. fixed subscription fee precalculation