Fix variable name in status.js
add warn type to the logger
Delete the loader variable as it is never used
Few memory improvements