Jquery style conversion for CSP safe