Some small progress with javascript