JS

Adding, correcting functions in JS. Created getElementById function and
makeSelectFields function.