added js for hover and contracting