Design replication and Javascript test

 @bohawi