added distance to js and p tag