ajax working to add weights and comments