added JAMjs support