Somewhat working js for ipa