Finish basic functionality in vanilla js