fixing getType behavior for null and undefined, defining jsTrue, fixing indexing bug, making addBlockAfter a server method instead of a client method