fixes for experimental js in chrome