Understanding the [@bs.val] decorator