sample file created for js

Hello i have created js function