Added A* example

- Added the A* javascript example
- Fixed the bug when switching from non source code examples to source
code examples, It wouldn’t show the source code box. Now it does