API functionality
(for .js-files in /API)