Added javascript code from coreapps module as part of - RA-194

Follow up - RA-194

Follow up to fix bug in paper record javascript for printing a chart label - RA-194