Borrowed a playback function. Try out rhtml-mode.