Added documentation, removed useless javascript