Help change javascript types