add browser package as dev dependency
change attribute type hints form num to double