Finally got pause/play button working using jquery