Update file.js

Fixed conditional regexp to handle cases like <!--[...]><!-->