Added second files js and fucntionality