set badge text using function instead of veal - Chrome extension security fix
extract inline script into separate files and reorganize files into js and css folders