modified jason format and added js frontend