added javascript assets and put inline script in rts.js