mostly just adding javascript to library item selection