When trying to work on an OLL or PLL algorithm it is often useful to have the inverse of the algorithm so that you can easily setup the situation you want to try. Use the algorithm inverter below to obtain an inverted algorithm.
This inverter uses Superset notation which you can find defined in detail here!
There is support for the following symbols: R U F L D B TR TU TF TL TD TB CR CU CF CL CD CB MR MU MF ML MD MB
There IS suppport for inverting any of the symbols above one at a time.
Valid inversion R’ U’ F’
Invalid inversion (R U F)’
ALL moves must be seperated by a space. Valid inputR’ U’ F’ Invalid input R’U'F’
This inverter is very basic there is no support for inversion of groups (i.e., (F R U)’), commutators (i.e., [a,b]), repitition, or any other advanced Superset constructs.

You have tested it and writing form your personal experience or you find some information online?
I wrote this from my personal knowledge of javascript and using the notation defined in the link indicated above. You are free to browse the source here.