Cleaning up unnessesary js code, removing inline js

Signed-off-by: Roman Schmerold (BNoiZe) <bnoize@froxlor.org>