refactored video select js to not reload page