Added splash screen, moved JSObject into separate class