custom dashboard widget if then statement

If I wanted to play a video if a user had certain capabilities what code would I insert? I don't know code so this is my piecemeal effort. I removed the ?php tags and selected execute content.

if (current_user_can('edit_pages')){
<script type="text/javascript" src="http://content.bitsontherun.com/players/nPripu9l-ALJ3XQCI.js"></script>
<script type="text/javascript">
botr_nPripu9l_ALJ3XQCI.addVariable("mute","true");'
</script>
;}