Javascript/html on book array