Update main.js

Fixed error preventing css to render when text file is not supplied