Replaces the absolute paths in main.js and fixes the id of the elements

The absolute paths are replaced with relative ones so that the app can
be run properly.
Also removes part of the id of the article which was preventing a user
from redirecting to the page for viewing it