Added JS script for sorting tables