Externalized javascript + added clicked here-function