Preliminary javascript backend