Regarding custom script in Salary SLip

I am new to erpnext want to display salary of the employee in word using custom script can anyone help me to do this?

Thanks in advance