Added helpful code base

Added a helpful code base, only code added is javascript.