Extracing initialize js from html. Remove unused tab code.