fix javascript include
add some documentation