added javascript test