Typo fixes and JS added to inlineScript helper