Added option to customize the extensions

(Need to output .json instead of .js)