Better checks for localStorage existence and readd 'px' removal