more attempts at js snap