Bugfix with javascript propagation