align = in exports
add an empty line
use localeCompare instead of ifs
use Array instead of array for preferences
do not convert new preferences
move event listener to the bottom of the file
move function to the bottom to make JSLint happy