Fixed typeof issue (addressed in jsfmt bug)