organized js scripts and moved into folder