Most parts of JS done