javascript file for component.html