what about some examples of javascript scripts what can be executed? is somewhere some documentation for this? what API is exposed to javascript?