The getPlatform() function is not global. The styles and other JavaScript will also all break if the class names are changed.