Fixes JS warnings