Js automate import

@terenceingram want to have a look over this please.