Javascript as Partial