Fixes select box for topics and uses typed arrays to improve performance

The performance increaes especially for models with a large number of
topics.

More infos about typed arrays:
https://developer.mozilla.org/en-US/docs/JavaScript/Typed_arrays
Removes obselete files.