js to toggle between matrices. added video player