Nowadays online resources play an important role in teaching and learning thanks to new advances in technology. This importance is enhanced in scientific areas and even more for distance education universities, where the classic hands-on laboratories are not always possible. For that reason, this face-toface laboratory practices have been replaced or even complemented with online virtual and remote laboratories VRL. Normally, these applications arc developed with high level programming tools, and these, to greater or lesser extent, use Java. Unfortunately, the newly discovered Java security issues and the impossibility to run Java in smart devices are an restriction to the dissemination of this kind of applications. This work is the first step towards get a new structure to Easy Java/Javascript Simulations (EjsS) that allows a remote connection with hardware devices. In this regard, the first objective is to solve the problems with Java applications when using EjsS. The proposed solution provides the user a structure to reuse their VRLs using a Java model that runs in a server and is linked with a Javascript graphical user interface in the client device.