Backend javascript implemented more formally, more changes to come!