Some js stuff and remame dirs.