Simplified the addSpeedDialEntry function by re-factoring it into two separate functions which helps the entry variable scope, this change also saves ~500KB of ram usage for me.
Put variable declarations in the bookmark API call scope within the generateFolderList function.