improved "js" tests