typed getComputedStyle function
add some checks for int_of_pxstring
remove useless logs
add helper functions for size on js element
reorganise + add types for button section