You are going to be using JScript in ribbon buttons. There are a lot of samples on the web for doing this. You should use a ribbon editor to speed things up.
The only tricky part is referencing your WebResource from the ribbon. You'll want to use the $webresource: notation as this example shows. You may want to check out the Visual Ribbon Editor.