misc clean-up in main.js

- parameterize the featured items url
- add/remove linefeeds between functions

Signed-off-by: William Rockwood <wrockwood@tadl.org>