moved js scripts into dedicated scripts js file