Javascript Onclick Show Loading Gif