updated bugs with links/imgs and js