moved js to sep file