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