Javascript wasn't properly propagated