removed 'http://localhost:3000 from data post url
added Math.floor function to starRadius thereby removing need for other 'radius' variable