Some js tidying up.
Most of comments done.
PR comments done.