Move results JS to inline