Thinking back to some example eBooks that have been popular and have done well are those that are quite niche. Off the top of my head some that I can think of are "Working with Unix Processes" and "Mastering Modern Payments". I don't think writing another intro to Javascript would be a good idea.