Add javascript bound function snippet