Moved the addJS to the parse function