Added JavaScript function texts.