added js to definition button