Fixed an issue when creating code examples

Also, quizfiles are appended with .js so there's no need to have that in
the default