Put the $("#folder_list").bind here where it should be, having it in the main file caused a weird bug upon refreshing the folder list when needed. Allowed showing folders with no bookmarks yet