added js and model