Javascript libraries.

Added an /extern/ and template/ folders.