updated class

added js redirect functionality

added line item support