move js into src folder
fix example file locations
add documentation