How can I transform JavaScript into Liquid code?

I wrote an example code in JS language to implement Google Address AutoComplete, but I don’t know how to convert it to liquid grammar.

@vtpl you can use js.liquid file to add your js