Coercion for JS