Add relative class by javascript

Signed-off-by: emanuele <emanuele45@gmail.com>