ADDED: simple JS test code