ADD Functionality to check if .js is in the end of file and if is not then add it