fix typo
split javascript into multiple files