You can create your own behaviors using JavaScript.
A script is a specific behavior that you can describe with JavaScript.
For more information about writing scripts, Creating Scripts.