Prevent a permanent scrollbar and remove useless js code