Write AHK with JavaScript