added javascript logger