removed empty *.js files and fixed some bugs for the add label JS function