Prefer typeof over try/catch for feature detection.
"float" is a reserved word in JS