added js
sorting works. now done in js