Documentation. Added js from previous commit