added javascript template
added missing depedency
demo changes
minor changes