Add pasta JavaScript