javascript is starting to work, getting and prepending id