Small tweaks for V8
Small ams.js tweaks