modified with Erlang
modified and added play_video.js