The OL2 code has parseInt, but it seems this is fine as it is indeed