Javascript file that allows for dynamic inputs