Use internal js reference rather than url