Added defaultProperties to Button
Fixed some code style
Fixed parseInt without radix