Slightly changed default.js to stop errors from appearing