#22 Move the component code into a separate file

Move the component code into a separate file create labelscomponents.js
file tat contains the functions code and add the link in  php file