Add definition of mplayer to beginning of each js file
Add dialogService based on angular-ui modal service