adding JS runtime dependency as per #411