add browser package as dev dependency
change attribute type hints form num to double
use vector_math library instead of custom vector implementation.