Hi everyone

I am trying to make actual Book Stories by javascript and connect that with sql server DB, I can imagine that as follow:
there is a cover page which will be filled by user.
table of content (will be filled by user).
there is a header for every pages contains the main title of story.
Possibility of uploading picture.

can I do that by javascript and how?
if it is not what is the best programing language can use to do that?

thanks