restore js shared