Javascript for library website design