javascript core of pamarin