Added separate js file with localise script

To comply with WooCommerce’s update. add_inline_js deprecated.