Ability to change the appended extension

Added the ability to change the appended extension, to allow appending
.min.js for example.