JS improved (test in progress)

Eyh !! Just a thing about inline functions:
The body of the function is implemented inside the header file. It
causes error when put inside the body of the classe (Not really natural,
isn't it ?)