For the <<replace>> macros you found: it looks like you need to c+p that CSS code into your story's CSS passage, AND include that .js code in your .js passage. There's information on how to do that here, but the jist of it is you just need two special passages tagged "stylesheet" and "script" with these codes in them. Then <<replace>> and all the others will work