implemented form clearing and other custom js