js into seperate file, made demo site usable