Added first stab at a javascript api for abilities as stuff.

Signed-off-by: Christian Smith <christian@senshikaze.net>