Inserting jQuery code afterwards is not uncommon, but in combination with the Revolution Slider it can lead to conflicts, so that either the code or the slider does not react.
Solution: jQuery libraries use jQuery() and $(), you should use jQuery() here to avoid conflicts.
jQuery ( function($) { //Insert code here } );