I just created a simple javascript app to test my oauth keycloak connections and implemented the calls to do the basic things ( except revoke the token) . 

My code is on github https://github.com/fadiabdeen/keycloak-oauth

I was able to get a authorization code. 
get a token 
refresh the token 
get the user information though validate 
logout ( which only clears the session 

I cant figure out how to revoke my access_token .. if anybody can help with this then its great. 

Thanks