Analyse video trough javascript